package componenti;

import java.util.Random;

public class GeneratoreCasuale {
	public static double[] getSimulation(LeggeDistribuzione lg, int results) {
		double[] res = new double[results];
		for (int i = 0; i < res.length; i++) {
			res[i] = lg.getRealization(new Random().nextDouble());
		}
		return res;
	}
}
